package cn.xiyue.production.bean;

import cn.xiyue.production.annotation.ColumnName;

public class Car {

    /**
     * size : 8
     * costTime : 10
     * userFactoryId : 1
     * carTypeId : 1
     * id : 1
     * repairPrice : 10000
     * userLineId : 1
     * content : MPV汽车
     * carTypeName : MPV汽车
     */

    private int size;
    private int costTime;
    private int userFactoryId;
    private int carTypeId;
    @ColumnName(value = "ID",index = 1)
    private int id;
    @ColumnName(value = "维修费用",index = 5)
    private int repairPrice;
    @ColumnName(value = "生产线信息",index = 4)
    private int userLineId;
    @ColumnName(value = "车辆描述",index = 3)
    private String content;
    @ColumnName(value = "车辆类型",index = 2)
    private String carTypeName;

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getCostTime() {
        return costTime;
    }

    public void setCostTime(int costTime) {
        this.costTime = costTime;
    }

    public int getUserFactoryId() {
        return userFactoryId;
    }

    public void setUserFactoryId(int userFactoryId) {
        this.userFactoryId = userFactoryId;
    }

    public int getCarTypeId() {
        return carTypeId;
    }

    public void setCarTypeId(int carTypeId) {
        this.carTypeId = carTypeId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getRepairPrice() {
        return repairPrice;
    }

    public void setRepairPrice(int repairPrice) {
        this.repairPrice = repairPrice;
    }

    public int getUserLineId() {
        return userLineId;
    }

    public void setUserLineId(int userLineId) {
        this.userLineId = userLineId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    @Override
    public String toString() {
        return "Car{" +
                "size=" + size +
                ", costTime=" + costTime +
                ", userFactoryId=" + userFactoryId +
                ", carTypeId=" + carTypeId +
                ", id=" + id +
                ", repairPrice=" + repairPrice +
                ", userLineId=" + userLineId +
                ", content='" + content + '\'' +
                ", carTypeName='" + carTypeName + '\'' +
                '}';
    }
}
